import React, { useContext, useRef, useState } from "react";
import Test from "./components/Test";

const index = () => {
  const [data, setData] = useState<number>(0);
  //   const ref = useRef().current(0)
  //   return <Test setData={setData} data={data} ref ={ref}></Test>;
  //   只能够用forward ref
  //   const first = useContext(second)
  return <Test setData={setData} data={data}></Test>;
};

export default index;
